﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StudentInfoSystem.Data
{
    class UserDataAccess
    {
        public static bool AddUser(string username, string pass, string fn, int role)
        {
            // TODO: Implement this method
            throw new NotImplementedException();
        }

        public static User GetUser(string username)
        {
            StudentInfoSystemDataDataContext database = new StudentInfoSystemDataDataContext();
            var user = database.Users.Where(currentUser => currentUser.Username == username).SingleOrDefault();
            return user;
        }
    }
}
